package com.example.beans;

import com.example.annotations.Autowired;
import com.example.annotations.Component;

@Component
public class Consumer {

    @Autowired
    private MyBean myBean;

    public void consume() {
        myBean.print();
    }
}